<?php
// +----------------------------------------------------------------------
// | 微信分组表
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2013 dunkebiao All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: dunkebiao <dunkebiao@163.com>
// +----------------------------------------------------------------------
namespace Home\Model;
use Think\Model;

class GroupModel extends Model {
	
	public function __construct()
	{
		parent::__construct();
	}
	
        
	public function add_group($data){
		
		return $this->data($data)->add();
		
	}
        
	public function find_group($where,$field){
		
		return $this->where($where)->field($field)->find();
		
	}
        
        public function select_group($where,$field,$order,$limit){
		
		return $this->where($where)->field($field)->order($order)->limit($limit)->select();
		
	}
	
	
	public function edit_group($where,$data){
			
		return $this->where($where)->save($data);
		
	}
	
	
}